<div class="position-relative">
	<div id="login-box" class="login-box visible widget-box no-border">
		<div class="widget-body">
			<div class="widget-main">
				<h4 class="header blue lighter bigger">
					<i class="icon-coffee green"></i>
					Please Enter Your Information
				</h4>

				<div class="space-6"></div>

				
				<?php 
				$form = $this->beginWidget('CActiveForm', array(
					'id'=>'login-form',
					'enableAjaxValidation'=>true,
					'enableClientValidation'=>true,
					'focus'=>array($model,'email'),
				)); 
				?>

				<fieldset>
					<label class="block clearfix">
						<span class="block input-icon input-icon-right">
							<?php echo $form->textField($model,'email',array('class'=>'form-control')); ?>
							<i class="icon-user"></i>
							<?php echo $form->error($model,'email'); ?>
						</span>
					</label>					
					<label class="block clearfix">
						<span class="block input-icon input-icon-right">
							<?php echo $form->passwordField($model,'password',array('class'=>'form-control')); ?>
							<i class="icon-lock"></i>
							<?php echo $form->error($model,'password'); ?>
						</span>
					</label>



					<div class="space"></div>

					<div class="clearfix">
						<label class="inline">
							<input type="checkbox" class="ace" />
							<span class="lbl"> Remember Me</span>
						</label>

						<button type="submit" class="width-35 pull-right btn btn-sm btn-primary">
							<i class="icon-key"></i>
							Login
						</button>
					</div>
					
					
					<?php $this->endWidget(); ?>
				</fieldset>
			</div>
		</div>
	</div>
</div>

<style>
.errorMessage{color:red;}
</style>